import request from '@/utils/request'
import {getStoreId} from '@/utils/index';


// 获取员工分页数据
export function page(form, pageSize, currentPage) {
  return request.post('/team/page', {
    param: form,
    pageSize: pageSize,
    pageNo: currentPage
  })
}

// 新增班组
export function add(options) {
  return request.post(`/team/save`, options)
}

/**
 * 修改班组
 * @param {*} options 
 */
export function putTeam(options) {
  return request.put(`/team/save`, options)
}
/**
 * 删除班组
 * @param {*} id 
 */
export function deleteTeam(id) {
  return request.delete(`/team/${id}`)
}

/**
 * 班组详情
 * @param {*} id 
 */
export function teamDetail(id) {
  return request.get(`/team/${id}`)
}
